<?php 
    session_start();
    if (!isset($_SESSION['id_usuario'])) {  echo "<script type=text/javascript> window.location = 'i_m_lost.html'; </script>";   }
    if(!isset($_GET['option'])){ echo "<script type=text/javascript> window.location = 'index.php'; </script>";   }
//   require 'php/userData.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="es-ES">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="shortcut icon" href="./images/fav_eStage.ico" />
    <title>eStage | Membership </title>
    <!--SCRIPTS-->
    <script type="text/javascript" src="js/functions.js"></script>
    <!--CSS-->
    <link rel="stylesheet" href="css/optionWindows.css" type="text/css" media="screen" />
       
</head>
    <body >
       <?php
        switch ($_GET['option']) {
            case 'passForm':
                             if (!isset($_POST['passForm'])) {  require 'php/passForm.php';  }  else{   require 'php/cambiaContrasena.php';   }    
                  break;
            case 'pictureForm':
//                require 'php/pictureForm.php';
                            if (!isset($_POST['pictureForm'])) {  require 'php/pictureForm.php';  }  else{   require 'php/procesarImagen.php';   }    
                  break;
            default:
                echo "ninguno";
                break;
        }
        ?>
    </body>
</html>
